{% extends "base.html" %}
{% block title %}Log in{% endblock %}
{% block extra_head %}
<script type="text/javascript" src="/static/jquery.inplace.pack.js"></script>
{% endblock %}

{% block content %}
<h1>Results</h1>

{% if credentials %}
  <script src="https://plus.sandbox.google.com/js/plusone.js"></script>
  <script>
    gapi.load('connect', function() {
      // Complete the connection and automatically close this window
      gapi.connect.complete({
        "id_token":"{{ credentials.id_token|safe }}",
        "access_token":"{{ credentials.access_token|safe }}",
        "expires_in": "{{ credentials.expires_in|safe }}",
        "state": "{{ credentials.state|safe }}"
      });
    });
  </script>
  {% endif %}
{% endblock %}
